<template>
  <div class="withdrawed">
    <div class="form-seach">
      <el-form :model="form" class="ele-form">
        <el-form-item label="商品名称:">
          <el-col :span="3">
            <el-input v-model="form.commdiry" placeholder="输入商品名称" />
          </el-col>
        </el-form-item>
        <el-form-item label="时段:">
          <el-col :span="3">
            <el-date-picker
              v-model="form.time1"
              type="datetime"
              placeholder="选择日期时间"
              default-time="12:00:00"
            />
          </el-col>
          <el-col :span="3" class="maringleft middle-word">
            至
          </el-col>
          <el-col :span="3" class="maringleft">
            <el-date-picker
              v-model="form.time2"
              type="datetime"
              placeholder="选择日期时间"
              default-time="12:00:00"
            />
          </el-col>
        </el-form-item>
        <el-form-item>
          <el-button type="primary">
            筛选
          </el-button>
        </el-form-item>
      </el-form>
    </div>
    <div class="custom-item">
      <el-table :data="BindTable" height="400" stripe>
        <el-table-column
          label="提现时间"
          header-align="center"
          align="center"
          prop="withdrawTime"
        />
        <el-table-column
          label="提现金额"
          header-align="center"
          align="center"
          prop="withdrawalAmount"
        />
        <el-table-column
          label="商户"
          header-align="center"
          align="center"
          prop="business"
        />
        <el-table-column
          label="提现方式"
          header-align="center"
          align="center"
          prop="withdrawWay"
        />
        <el-table-column
          label="提现账号"
          header-align="center"
          align="center"
          prop="withdrawAccount"
        />
        <el-table-column
          label="用户名"
          header-align="center"
          align="center"
          prop="userName"
        />
        <el-table-column
          label="通过时间"
          header-align="center"
          align="center"
          prop="passTime"
        />
      </el-table>
      <div class="pagination">
        <div>
          <el-pagination
            :page-sizes="[100, 200, 300, 400]"
            :page-size="100"
            layout="total, sizes, prev, pager, next, jumper"
            :total="400"
            @size-change="handleSizeChange"
            @current-change="handleCurrentChange"
          />
        </div>
      </div>
    </div>
  </div>
</template>

<script>
/** 已提现 */
export default {
  name: 'Withdrawed',
  data() {
    return {
      form: {},
      pattern: {
        reason: [{ required: true, message: '原因不能为空', trigger: 'blur' }]
      },
      BindTable: [
        {
          withdrawTime: '2019-04-25 12:00',
          withdrawalAmount: '66',
          business: 'xx商户',
          withdrawWay: '微信',
          withdrawAccount: '15865452145',
          userName: '哈哈哈',
          passTime: '2019-04-25 12:00'
        }
      ]
    }
  },
  methods: {
    handleSizeChange() {},
    handleCurrentChange() {}
  }
}
</script>

<style lang="scss" scoped>
.maringleft {
  margin-left: 12px;
}
.middle-word{
  text-align: center;
}
.withdrawed {
  .form-seach {
    background: #f3f3f3;
    padding: 40px 20px;
    .ele-form {
      ::v-deep.el-form-item__label {
        width: 100px;
        text-align: start;
      }
      .el-button {
        margin-left: 100px;
      }
    }
  }
  .custom-item {
    widows: 100%;
    margin-top: 50px;
    .pagination {
      display: flex;
      justify-content: space-between;
      margin-top: 40px;
      margin-bottom: 100px;
    }
  }
}
</style>
